package com.zhuhjay.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

/**
 * @author ZhuHJay
 * @date 2023/4/26 20:55
 */
@Data
public class MemberInsertDto {

    @NotBlank(message = "会员姓名不能为空")
    private String name;
    @NotBlank(message = "会员密码不能为空")
    private String pwd;
    @Range(min = 1, max = 3, message = "会员类型不正确")
    private Integer typeid;
    @Range(min = 0, message = "会员余额不能为负数")
    private Float balance;
    @NotBlank(message = "会员电话不能为空")
    private String tel;
    @NotBlank(message = "会员身份证号不能为空")
    private String idnumber;

}
